# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=vala-language-server
pkgver=0.48.4
pkgrel=1
pkgdesc="Code Intelligence for Vala"
url="https://github.com/Prince781/vala-language-server"
arch="all"
license="LGPL-2.1-or-later"
makedepends="meson vala json-glib-dev glib-dev libgee-dev jsonrpc-glib-dev scdoc"
subpackages="$pkgname-dbg $pkgname-doc"
source="https://github.com/Prince781/vala-language-server/releases/download/$pkgver/vala-language-server-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Ddefault_library=shared \
		-Dbuilder_abi=3.40 \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
ffaf16d7af0ded81cd0de18e38310bdf1d860343916e624c9f370ee0b2ee7087024477fe364e8de2e137d8a713344a6def22e51812c4ceb5ac215e92035394c0  vala-language-server-0.48.4.tar.xz
"
